package com.baby.mall.ware.service;

import com.baby.mall.ware.entity.vo.MergeVo;
import com.baby.mall.ware.entity.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baby.common.utils.PageUtils;
import com.baby.mall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author qinglongzhai
 * @email qinglongzhai@gmail.com
 * @date 2021-03-15 10:49:43
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     *查询出未领取的采购单
     * @Author QLZ
     * @Date 2021/3/18
     *  @param params:
     *  @return: com.baby.common.utils.PageUtils
     */

    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    /**
     * 合并整单
     * @param mergeVo
     */
    void mergePurechase(MergeVo mergeVo);

    /**
     *领取采购单
     * @Author QLZ
     * @Date 2021/3/18
     *  @param ids:
     *  @return: void
     */

    void received(List<Long> ids);

    /**
     * 完成采购需求
     * @Author QLZ
     * @Date 2021/3/18
     *  @param doneVo:
     *  @return: void
     */

    void done(PurchaseDoneVo doneVo);
}

